package server

import "sync"

type GroupInfo struct {
	Name        string
	Members     map[string]struct{}
	MembersLock sync.RWMutex
}

func NewGroupInfo(name string, creator string) *GroupInfo {
	return &GroupInfo{
		Name: name,
		Members: map[string]struct{}{
			creator: {},
		},
	}
}
